package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.ElectronicFence;
import com.dwxt.cdms.entity.ElectronicFenceExample;
import com.dwxt.cdms.entity.vo.ElectronicFenceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ElectronicFenceMapper {
    int countByExample(ElectronicFenceExample example);

    int deleteByExample(ElectronicFenceExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ElectronicFence record);

    int insertSelective(ElectronicFence record);

    List<ElectronicFence> selectByExample(ElectronicFenceExample example);

    ElectronicFence selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ElectronicFence record, @Param("example") ElectronicFenceExample example);

    int updateByExample(@Param("record") ElectronicFence record, @Param("example") ElectronicFenceExample example);

    int updateByPrimaryKeySelective(ElectronicFence record);

    int updateByPrimaryKey(ElectronicFence record);

    List<ElectronicFenceVo> selectListByQuery(@Param("name") String name ,@Param("community")String community,@Param("status")Integer status);

    ElectronicFence selectFenceByCustomerId(Integer customerId);

}